package org.scala.test.pool

trait TaskEvent {
  
    def doTask(name:String):Unit 
}

case class TaskSubmitted(name:String) extends TaskEvent{
  def doTask(name:String):Unit={
     
  }
}

case class TaskSucceed(name:String) extends TaskEvent{
  def doTask(name:String):Unit={
     
  }
}

case class TaskFailed(name:String) extends TaskEvent{
  def doTask(name:String):Unit={
     
  }
}
